package cn.edu.scau.cmi.yangzhichao.composite.safe;


public class SafeLeaf extends SafeComponent{
    public SafeLeaf(String name) {
        super(name);
    }

    @Override
    public void display(int level) {
        for(int i=0;i<level;i++){
            SafeCompositeViewController.addToTextView("-");
        }
        SafeCompositeViewController.addToTextView(name+"\r\n");
    }
}
